<?php

namespace app\hotel\validate;

use think\Validate;

class AuthValidate extends Validate
{
    protected $rule = [
        'js_code|微信代码'       =>  'require',
        'username|昵称'       =>  'require',
        'head_img|头像'       =>  'require',
        'phone|电话号码'       =>  'require',
    ];

    protected $scene = [
        'WxLogin' => ['js_code', 'username', 'head_img'],
        'sendSms' => ['phone'],
    ];

}